#ifndef MAINWIDGET_H
#define MAINWIDGET_H

#include <QWidget>

#include <QPushButton>
#include "subwidget.h"//子窗口头文件

class MainWidget : public QWidget
{
    Q_OBJECT

public:
    MainWidget(QWidget *parent = 0);
    ~MainWidget();


    //自定义槽函数
    void mySlot();

    void changeWin();

    void dealSub();

    void dealSlot(int,QString);

private:
    QPushButton b1;
    QPushButton *b2;
    QPushButton b3;

    //子窗口对象
    SubWidget subWin;
};

#endif // MAINWIDGET_H
